package com.heima.estatemanagement.controller;

import com.heima.estatemanagement.common.Result;
import com.heima.estatemanagement.domain.TbOwner;
import com.heima.estatemanagement.service.TbOwnerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description: owner的控制器
 * Created by 86191 on 2023/2/8.
 */
@RestController
@RequestMapping("/owner")
public class OwnerController {
    @Autowired
    private TbOwnerService ownerService;
    @RequestMapping("/selectByCommunityId")
    public Result find(int communityId){
        List<TbOwner> all = ownerService.selectByCommunityId(communityId);
        return new Result(false,200,"请求成功adasdasdas",all);
    }
}
